package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.vo.AttrEntityVo;
import com.atguigu.gulimail.product.vo.AttrRespVo;
import com.atguigu.gulimail.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xiaozheng
 * @email 924155240@qq.com
 * @date 2021-01-29 17:26:54
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

	void saveDetail(AttrEntityVo attrvo);

	/**
	 * 查询出基础数据
	 * @param params
	 * @return
	 */
	PageUtils queryBasePage(Map<String, Object> params, Long categoryId, String attrType);

	AttrRespVo getAttrInfo(Long attrId);

	void updateAttr(AttrVo attr);

	List<AttrEntity> getByAttrGroupId(Long attrgroupId);
}

